package com.cis467.mrball;

import java.util.ArrayList;

import android.graphics.Color;
import android.graphics.Paint;

public class PaintManager {

	// Color constants
	protected static final int TEXT_NORMAL = 0;
	protected static final int TEXT_ACTIVE = 1;
	protected static final int PANEL = 2;
	protected static final int CONTAINER = 3;
	protected static final int SELECTED = 4;
	protected static final int REMOVE = 5;
	protected static final int TEXT_LARGE = 6;

	private ArrayList<Paint> paints;
	
	public PaintManager() {
		
		paints = new ArrayList<Paint>();
		
		// Add the text paints
		Paint textNormal = new Paint();
		textNormal.setColor(Color.WHITE);
		textNormal.setTextSize(SharedConstants.NORMAL_TEXT_SIZE);
		textNormal.setStyle(Paint.Style.FILL);
		paints.add(textNormal);
		
		// Add the selected text paint
		Paint textActive = new Paint();
		textActive.setColor(Color.RED);
		textActive.setTextSize(SharedConstants.NORMAL_TEXT_SIZE);
		textActive.setStyle(Paint.Style.FILL);
		paints.add(textActive);
		
		// Add the panel paint
		Paint panel = new Paint();
		panel.setColor(Color.BLACK);
		paints.add(panel);
		
		// Add the container paint
		Paint container = new Paint();
		container.setColor(Color.BLUE);
		paints.add(container); 
		
		// Add the selected paint
		Paint selected = new Paint();
		selected.setColor(Color.DKGRAY);
		paints.add(selected); 
		
		// Add the remove paint
		Paint remove = new Paint();
		remove.setColor(Color.RED);
		paints.add(remove);
		
		// Add the selected text paint
		Paint textLarge = new Paint();
		textLarge.setColor(Color.WHITE);
		textLarge.setTextSize(SharedConstants.LARGE_TEXT_SIZE);
		textLarge.setStyle(Paint.Style.FILL);
		paints.add(textLarge);
	}
	
	public Paint getPaint(int paintNumber) {
	
		return paints.get(paintNumber); 
	}
}
